package HomeWork.regex;

import java.util.Objects;

public class Student {
    int StuID;
    String name;
    public Student(){}
    public Student(int stuID, String name) {
        StuID = stuID;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "StuID=" + StuID +
                ", name='" + name + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Student student = (Student) o;
        return StuID == student.StuID && Objects.equals(name, student.name);
    }


    public int getStuID() {
        return StuID;
    }

    public void setStuID(int stuID) {
        StuID = stuID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
